// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '检测项设置',
        name: 'Inspection',
        url: "/Inspection/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"InspectionCode":"","InspectionName":"","InspectionType":"","InspectionTool":"","InspectionValueType":"","Remark":"","AutoGenerate":true};
    const editFormOptions = [[{"title":"检测项编码","field":"InspectionCode","type":"text","required":true,"placeholder":"请输入检测项编码"},
                               {"title":"自动生成","field":"AutoGenerate","type":"switch"}],
                              [{"title":"检测项名称","field":"InspectionName","type":"text","required":true,"placeholder":"请输入检测项名称"}],
                              [{"dataKey":"检测项类型","data":[],"title":"检测项类型","field":"InspectionType","type":"select","required":true,"placeholder":"请选择检测项类型"},
                               {"title":"检测工具","field":"InspectionTool","type":"text","placeholder":"请输入检测工具"}],
                              [{"dataKey":"检测值类型","data":[],"title":"检测值类型","field":"InspectionValueType","type":"select","required":true,"placeholder":"请选择检测值类型"}],
                              [{"title":"备注","field":"Remark","type":"textarea","placeholder":"请输入备注信息"}]];
    const searchFormFields = {"InspectionCode":"","InspectionName":"","InspectionType":""};
    const searchFormOptions = [[{"title":"检测项编码","field":"InspectionCode","type":"like"},{"title":"检测项名称","field":"InspectionName","type":"like"},{"dataKey":"检测项类型","data":[],"title":"检测项类型","field":"InspectionType","type":"select"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,require:true,align:'left'},
                       {field:'InspectionCode',title:'检测项编码',type:'string',width:110,align:'left'},
                       {field:'InspectionName',title:'检测项名称',type:'string',width:110,align:'left'},
                       {field:'InspectionType',title:'检测项类型',type:'string',bind:{ key:'检测项类型',data:[]},width:110,align:'left'},
                       {field:'InspectionTool',title:'检测工具',type:'string',width:110,align:'left'},
                       {field:'InspectionValueType',title:'检测值类型',type:'string',bind:{ key:'检测值类型',data:[]},width:110,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:220,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}